load("//tools:cpplint.bzl", "cpplint")

package(default_visibility = ["//visibility:public"])

cc_library(
    name = "config_gflags",
    srcs = [
        "config_gflags.cc",
    ],
    hdrs = [
        "config_gflags.h",
    ],
    data = [
        "//modules/common/data:global_flagfile",
    ],
    deps = [
        "//external:gflags",
    ],
)

cc_library(
    name = "vehicle_config_helper",
    srcs = [
        "vehicle_config_helper.cc",
    ],
    hdrs = [
        "vehicle_config_helper.h",
    ],
    data = [
        "//modules/common/data:vehicle_config_data",
    ],
    deps = [
        ":config_gflags",
        "//cyber",
        "//modules/common",
        "//modules/common/configs/proto:vehicle_config_proto",
        "//modules/common/util",
        "@glog",
    ],
)

cc_test(
    name = "vehicle_config_helper_test",
    size = "small",
    srcs = [
        "vehicle_config_helper_test.cc",
    ],
    deps = [
        "vehicle_config_helper",
        "@gtest//:main",
    ],
)

cpplint()
